package com.asset.dispoal.evidenceconfig.domain.db.mapper;

import com.asset.dispoal.evidenceconfig.domain.db.entity.BsEvidenceConf;
import com.asset.dispoal.evidenceconfig.domain.dto.EvidenceConfQueryIdsDto;
import com.asset.dispoal.evidenceconfig.domain.dto.EvidenceConfRespIdsDto;
import com.asset.dispoal.evidenceconfig.dto.request.BsEvidenceConfRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.core.mapper.BaseMapper;
import tech.mhuang.pacebox.springboot.protocol.data.Page;

import java.util.List;
import java.util.Map;

/**
 * @author qr
 * @date 2021/10/21$
 */
@Mapper
public interface BsEvidenceConfMapper extends BaseMapper<BsEvidenceConf, String> {

    /**
     * 根据编码/名称查询
     *
     * @param page
     * @return
     */
    List<BsEvidenceConf> findEvidenceConf(Page<BsEvidenceConfRequest> page);

    /**
     * 根据编码/名称查询条数
     *
     * @param bsEvidenceConfRequest
     * @return
     */
    Integer findEvidenceConfCount(@Param("bsEvidenceConfRequest") BsEvidenceConfRequest bsEvidenceConfRequest);

    /**
     * 查询子类id
     */
    List<EvidenceConfRespIdsDto> findItemAndDetailIds(@Param("confQueryIdsDto") EvidenceConfQueryIdsDto confQueryIdsDto);


    List<Map<String, String>> findListByBatchId(@Param("batchId") String batchId);


}
